package cn.stronglink.oil.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Tgb on 2017/10/18.
 * 设备实时信息
 */

public class DeviceRealTimeInfo implements Serializable{

    /**
     * deviceSerial : /GPVLG22/CN1296661B0010/
     * gasDevices : [{"deviceId":2,"deviceLng":39.55524,"deviceLat":116.1414,"gasInfos":[{"gasType":3,"gasName":"硫化氢","gasVlaue":0,"unit":"X10^-6"},{"gasType":5,"gasName":"氧气","gasVlaue":20.9,"unit":"%VOL"},{"gasType":43,"gasName":"二氧化硫","gasVlaue":0,"unit":"X10^-6"},{"gasType":50,"gasName":"可燃气体","gasVlaue":0,"unit":"%LEL"},{"gasType":78,"gasName":"VOC","gasVlaue":0,"unit":"X10^-6"},{"gasType":79,"gasName":"Gamma","gasVlaue":0,"unit":"uSv/h"}]}]
     * weatherDevice : {"windDirection":0,"windSpeed":0,"temperature":21.64,"humidity":74.87,"pressure":101.99,"noise":48.5,"pm2_5":15}
     */

    private String deviceSerial;
    private WeatherDeviceBean weatherDevice;
    private List<GasDevicesBean> gasDevices;

    public String getDeviceSerial() {
        return deviceSerial;
    }

    public void setDeviceSerial(String deviceSerial) {
        this.deviceSerial = deviceSerial;
    }

    public WeatherDeviceBean getWeatherDevice() {
        return weatherDevice;
    }

    public void setWeatherDevice(WeatherDeviceBean weatherDevice) {
        this.weatherDevice = weatherDevice;
    }

    public List<GasDevicesBean> getGasDevices() {
        return gasDevices;
    }

    public void setGasDevices(List<GasDevicesBean> gasDevices) {
        this.gasDevices = gasDevices;
    }

    public static class WeatherDeviceBean implements Serializable{
        /**
         * windDirection : 0
         * windSpeed : 0
         * temperature : 21.64
         * humidity : 74.87
         * pressure : 101.99
         * noise : 48.5
         * pm2_5 : 15
         */

        private float windDirection;
        private float windSpeed;
        private float temperature;
        private float humidity;
        private float pressure;
        private float noise;
        private float pm2_5;

        public float getWindDirection() {
            return windDirection;
        }

        public void setWindDirection(float windDirection) {
            this.windDirection = windDirection;
        }

        public float getWindSpeed() {
            return windSpeed;
        }

        public void setWindSpeed(float windSpeed) {
            this.windSpeed = windSpeed;
        }

        public float getTemperature() {
            return temperature;
        }

        public void setTemperature(float temperature) {
            this.temperature = temperature;
        }

        public float getHumidity() {
            return humidity;
        }

        public void setHumidity(float humidity) {
            this.humidity = humidity;
        }

        public float getPressure() {
            return pressure;
        }

        public void setPressure(float pressure) {
            this.pressure = pressure;
        }

        public float getNoise() {
            return noise;
        }

        public void setNoise(float noise) {
            this.noise = noise;
        }

        public float getPm2_5() {
            return pm2_5;
        }

        public void setPm2_5(float pm2_5) {
            this.pm2_5 = pm2_5;
        }
    }

    public static class GasDevicesBean implements Serializable{
        /**
         * deviceId : 2
         * deviceLng : 39.55524
         * deviceLat : 116.1414
         * gasInfos : [{"gasType":3,"gasName":"硫化氢","gasVlaue":0,"unit":"X10^-6"},{"gasType":5,"gasName":"氧气","gasVlaue":20.9,"unit":"%VOL"},{"gasType":43,"gasName":"二氧化硫","gasVlaue":0,"unit":"X10^-6"},{"gasType":50,"gasName":"可燃气体","gasVlaue":0,"unit":"%LEL"},{"gasType":78,"gasName":"VOC","gasVlaue":0,"unit":"X10^-6"},{"gasType":79,"gasName":"Gamma","gasVlaue":0,"unit":"uSv/h"}]
         */

        private int deviceId;
        private double deviceLng;
        private double deviceLat;
        private long gasTime;
        private List<GasInfosBean> gasInfos;

        public long getGasTime() {
            return gasTime;
        }

        public void setGasTime(long gasTime) {
            this.gasTime = gasTime;
        }

        public int getDeviceId() {
            return deviceId;
        }

        public void setDeviceId(int deviceId) {
            this.deviceId = deviceId;
        }

        public double getDeviceLng() {
            return deviceLng;
        }

        public void setDeviceLng(double deviceLng) {
            this.deviceLng = deviceLng;
        }

        public double getDeviceLat() {
            return deviceLat;
        }

        public void setDeviceLat(double deviceLat) {
            this.deviceLat = deviceLat;
        }

        public List<GasInfosBean> getGasInfos() {
            return gasInfos;
        }

        public void setGasInfos(List<GasInfosBean> gasInfos) {
            this.gasInfos = gasInfos;
        }

        public static class GasInfosBean implements Serializable{
            /**
             * gasType : 3
             * gasName : 硫化氢
             * gasVlaue : 0
             * unit : X10^-6
             */

            private int gasType;
            private String gasName;
            private float gasVlaue;
            private String unit;

            public int getGasType() {
                return gasType;
            }

            public void setGasType(int gasType) {
                this.gasType = gasType;
            }

            public String getGasName() {
                return gasName;
            }

            public void setGasName(String gasName) {
                this.gasName = gasName;
            }

            public float getGasVlaue() {
                return gasVlaue;
            }

            public void setGasVlaue(float gasVlaue) {
                this.gasVlaue = gasVlaue;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }
        }
    }
}
